<?php


namespace App\Models\MainDB;


use Illuminate\Database\Eloquent\Model;

class ScreenGift extends Model
{
    protected $table = 'ln_screen_gift';     //数据库内完整表名

    protected $primaryKey = 'id';    //主键名

    public $timestamps = false;

    protected $fillable = [
        'id',
        'gift_id',
        'gift_img',
        'status',
    ];

    public function gift()
    {
        return $this->hasOne(Gift::class, 'id', 'gift_id');
    }
}